package com.hepengju.mockdata.web;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Tag(name = "接口文档")
@Controller
@RequestMapping
public class DocController {

    @Operation(summary = "knife4j文档")
    @GetMapping("/doc")
    private String doc(){
        return "redirect:/doc.html";
    }

    @Operation(summary = "swagger文档")
    @GetMapping("/swagger")
    private String swagger(){
        return "redirect:/swagger-ui.html";
    }
}
